package com.koron.order.repair.mapper;

import com.koron.order.repair.bean.entity.RepairEquipmentPo;
import com.koron.order.repair.bean.vo.RepairEquipmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (RepairEquipment)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-14 14:25:14
 */
public interface RepairEquipmentMapper {

    RepairEquipmentPo queryById(String id);

    List<RepairEquipmentPo> queryList(RepairEquipmentPo repairEquipment);

    int insert(RepairEquipmentPo repairEquipment);

    int update(RepairEquipmentPo repairEquipment);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    int insertBatch(@Param("list") List<RepairEquipmentPo> repairEquipmentPoList);

    List<RepairEquipmentVo> queryByOrderId(@Param("repairId") String orderId);

}